@extends('admin.public.admin')
@section('main')
<!-- 内容 -->
<div class="mws-panel grid_8">

    <div class="mws-panel-header">
         <span>修改订单状态</span>
    </div>

    <div class="mws-panel-body no-padding">
         <form class="mws-form" action="" method="post">
         {{csrf_field()}}
      <div class="mws-form-inline">

           <div class="mws-form-row">
                <label class="mws-form-label">订单号</label>
                <div class="mws-form-item">
                     <input type="text" class="small" name="code" value="{{$_GET['code']}}">
                </div>
       		</div>

            <div class="mws-form-row">
                <label class="mws-form-label ">订单状态</label>
                <div class="mws-form-item">
		             <select class="small" name="sid">
		             	@foreach($data as $value)
							@if($_GET['sid']==$value['id'])
								<option selected value="{{$value['id']}}">{{$value['name']}}</option>
							@else
								<option value="{{$value['id']}}">{{$value['name']}}</option>

							@endif
						@endforeach
		             </select>
                </div>
           </div>
                                             
        </div>
              <div class="mws-button-row">
                   <input type="submit" value="提交" class="btn btn-success">
     			   <input type="button" class="btn btn-danger" onclick="history.go(-1)" value="返回">
              </div>
         </form>
    </div>         
</div>
@endsection